package com.zhangzhan.blog_model.vos;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @author 张一恒
 * @version 1.0
 * @description:
 * @date 2024/2/5 22:19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommentListVo {

    private Long id;

    private String username;


    /**
     * 文章id
     */
    private Long articleId;


    /**
     * 根评论id
     */
    private Long rootId;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 所回复的目标评论的userid
     */
    private Long toCommentUserId;
    /**
     * 所回复的目标评论的用户名
     */
    private String toCommentUserName;

    /**
     * 回复目标评论id
     */
    private Long toCommentId;

    private Long createBy;

    private Date createTime;

    /**
     * 根评论
     */
    private List<CommentListVo> children;

}
